<?php

if (file_exists("$_SESSION[current_path]/includes.php"))
	include ("$_SESSION[current_path]/includes.php");
	
Print("
	<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
	<html xmlns=\"http://www.w3.org/1999/xhtml\">
	<head>
	<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
	<title>Administration du site $_SESSION[title]</title>
");

	/**************/  
	/*  ThickBox  */
	/**************/
		imports_js("odt_frm_php.thickbox");
		imports_css("odt_frm_php.apps.thickbox");
	
	/*******/
	/* CSS */
	/*******/
		imports_css("currentt.style");
		imports_css("currentt.theme1");
		
		Print("
			<script>
   				var StyleFile = \"theme\" + document.cookie.charAt(6) + \".css\";
   				document.writeln('<link rel=\"stylesheet\" type=\"text/css\" href=\"templates/default/css/' + StyleFile + '\">');
			</script>
		");
		
		imports_css("currentt.ie-sucks", "IE");
	
Print("
	</head>

	<body>
		<div id=\"container\">
    		<div id=\"header\">
        		<h2>Administration du site $_SESSION[title]</h2>
		<div id=\"topmenu\">");
                		include ("webadmin/$path_php/menu.php");
			  Print("</div>
		  </div>");
		  
		  if ($_SESSION['page'] != "index")
		  {
				Print("
					<div id=\"top-panel\">
						<div id=\"panel\">");
								include ("$_SESSION[current_path]/menu.php");
						Print("</div>
				  </div>
			  ");
		  }
		  
			Print("
			<div id=\"wrapper\">
				<div id=\"content\">
			");
			
				include ("$_SESSION[current_path]/select.php");
				
			Print("	
				</div>
		  </div>
		  <div id=\"footer\">
				<center>
					<small>
						Powered by <a href=\"http://www.opendevtools.net\">OpenDevTools - EnsKA PHP</a><br>
						Copyright &copy 2009 $_SESSION[title] All rights reserved. <a href=\"../\">[Retour au site]</a>
						<br><br>
						Changer les couleurs du panneau d'administration :
						<ul>
			                <li><a href=\"javascript: document.cookie='theme=1'; window.location.reload();\" title=\"Blue\" id=\"blueswitch\">b</a></li>
			                <li><a href=\"javascript: document.cookie='theme=2'; window.location.reload();\" title=\"Green\" id=\"greenswitch\">g</a></li>
			                <li><a href=\"javascript: document.cookie='theme=3'; window.location.reload();\" title=\"Brown\" id=\"brownswitch\">b</a></li>
			                <li><a href=\"javascript: document.cookie='theme=4'; window.location.reload();\" title=\"Mix\" id=\"mixswitch\">m</a></li>
			            </ul>
					</small>
				</center>
			</div>
	</div>
	
	</body>
	</html>

");

?>